package com.kaigejava.celue.patterns;


import com.kaigejava.celue.patterns.behaviorinterface.impl.GaGaQuackBehavior;
import com.kaigejava.celue.patterns.behaviorinterface.impl.GoodFlyBehavior;
import com.kaigejava.celue.patterns.behaviorinterface.impl.GuGuQuackBehavior;
import com.kaigejava.celue.patterns.behaviorinterface.impl.NotFlyBehavior;

/**
 * Created by kaigejava on 2019/8/9.
 * 红头鸭子
 */
public class RedHeadQuck extends Duck {
    public RedHeadQuck(){
        myFlyBehavior = new NotFlyBehavior();
        myQuackBehavior = new GuGuQuackBehavior();
    }
    @Override
    public void display() {
        System.out.println("~~ i'm  Read ~~ gaga");

    }
}
